/**
 * 
 */
package org.cuatrovientos.menu;

import java.util.Random;
import java.util.Scanner;

/**
 * Simple program to display a menu
 * @author PC
 * @version 1.0
 */
public class Menu {

	private static void sayYouLoveMe() {
		
		
	}

	private static void insult() {
		String[] insults = {"Cocksucker","Queer","Faggot","Motherfucker"};
		Random random = new Random();
		int index = random.nextInt(insults.length);
		System.out.println(insults[index]);
		
	}

	private static void sayHello() {
	System.out.println("Hello");
	System.out.println("How are you?");
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		String option = "";
		do {
		System.out.println("Please select: ");
		System.out.println("1) Say hello ");
		System.out.println("2) Insult me ");
		System.out.println("3) Say you love me ");
		System.out.println("4) Exit ");
		
		
		option = reader.nextLine();
		switch (option) {
		case "1": 
			System.out.println("You selected 1");
			sayHello();
			break;
		case "2": 
			System.out.println("You selected 2");
			insult();
			break;
		case "3": 
			System.out.println("You selected 3");
			sayYouLoveMe();
			break;
		case "4": 
			System.out.println("You selected 4");
			break;
		default:
			System.out.println("Incorrect option ");
			break;
		}
		} while(!option.equals("4"));
	}


}
